package com.eric.service;


import java.util.List;
import java.util.Map;

import com.eric.bean.CodeBlock;

import javax.servlet.http.HttpServletRequest;

public interface CodeBlockService {
	
	/**
	 * 查找
	 * @param blockId
	 * @return
	 */
	public CodeBlock getCodeBlockById(int blockId);
    
	/**
	 * 新增
	 * @param block
	 * @return
	 */
    public int doAdd(HttpServletRequest request, CodeBlock block);
    
    /**
     * 删除
     * @param id
     * @return
     */
    public int delete(String id);
    
    /**
     * 修改
     * @param block
     * @return
     */
    public int update(CodeBlock block);
    
    public List<Map> getList();

	public CodeBlock selectByName(String name);

	public List<Map> selectListByName(String name);

}
